package com.tanklab.signature.common.util;

public enum ResultCode {
    TEST("0","Test Msg"),
    ERROR("1000","Unknown Error Occurred."),
    SUCCESS("1001","Request Successfully!"),
    USER_EMAIL_EXIST("1002","User Email Exist!"),
    LOGIN_FAIL("1003","Login Failed."),

    LOGIN_FAIL_NOREGISTER("1012","Login Failed.Have not Registered."),
    LOGIN_FAIL_PHONENUM("1009","Login Failed.Phone Number is illegal."),
    REGISTER_FAIL("1010","Register Failed."),
    REGISTER_FAIL_ALREADY("1011","Register Failed.Have Already Registered."),
    REGISTER_FAIL_PHONENUM("1012","Register Failed.Phone Number is illegal."),

    PRIPSWD_ERROR("1004","PrivateKey Password Error!"),
    PSWD_ERROR("1005","Password Error!"),
    TOKEN_ERROR("1006","Token Error!"),
    NOT_MATCH_ERROR("1007","Not Match Error!"),

    PROCESS_ERROR("1008","The Ox Cannot Process Again!"),

    TOKEN_MISS  ("401001","Token缺失"),
    TOKEN_INVALID  ("401002","Token无效或已过期"),
    TOKEN_REFRESH_INVALID  ("401003"," 刷新Token无效"),
    USER_NOT_EXIST("401004","用户不存在" ),
    PARAM_ERROR("1009","Parameter Error!"),
    PERMISSION_DENIED("401005","没有权限访问该资源"),
    DATA_NOT_EXIST("401006","数据不存在"),
    ;
    public String Code;
    public String Msg;
    ResultCode(String code, String msg) {
        this.Code = code;
        this.Msg = msg;
    }
}
